/*
 *  This file is part of Sparwe.
 *
 *  Sparwe is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Sparwe is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with Sparwe.  If not, see <http://www.gnu.org/licenses/>.
 */ 


#ifndef __EVENTMANAGEMENTTEST_H__
#define __EVENTMANAGEMENTTEST_H__

#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>

#include "../src/exceptions.h"
#include "../src/queue.h"

class QueueTests : public CPPUNIT_NS::TestFixture
{
	CPPUNIT_TEST_SUITE (QueueTests);
	CPPUNIT_TEST_EXCEPTION (emptyPeekTest, sp_core::Exception);
	CPPUNIT_TEST_EXCEPTION (emptyPullTest, sp_core::Exception);
	CPPUNIT_TEST (pushNullTest);
	CPPUNIT_TEST (peekTest);
	CPPUNIT_TEST (pushPullTest);
	CPPUNIT_TEST (concurrencyTest);
	CPPUNIT_TEST_SUITE_END();

	public:
	void setUp(void);
	void tearDown(void);

	protected:

	void emptyPeekTest();
	void emptyPullTest();
	void pushNullTest();
	
	void peekTest(void);
	void pushPullTest(void);
	void concurrencyTest(void);	
};


#endif
